package top.hzy520.admin.user.dao;

import org.apache.ibatis.annotations.Mapper;
import top.hzy520.admin.user.entity.User;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUserName(String username);

    List<User> selectUserByEmail(String email);

    List<User> selectUserByMobile(String mobile);
}